package chan.project.smartlawmodel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 聊天信息表
 * @TableName chat_messages
 */
@TableName(value ="chat_messages")
@Data
public class ChatMessages implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long messageId;

    /**
     * 
     */
    private Long senderId;

    /**
     * 
     */
    private Long receiverId;

    /**
     * 
     */
    private String messageText;

    /**
     * 消息发送时间
     */
    private Date timestamp;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}